package main

import (
	"fmt"
)

type Bird struct {
	Name  string
	Wing  bool
	Fly   bool
	Color string
}

type Person struct {
	Name string
	Age  int
}

func main() {
	var eagle Bird
	eagle.Name = "eagle"
	eagle.Wing = true
	eagle.Fly = true
	eagle.Color = "black"
	var ostrich Bird
	ostrich.Name = "ostrich"
	ostrich.Wing = true
	ostrich.Fly = false
	ostrich.Color = "grey"
	fmt.Println(eagle)
	fmt.Println(ostrich)
	var eagle1 Bird = Bird{
		Name:  "eagle",
		Wing:  true,
		Fly:   true,
		Color: "red",
	}
	fmt.Println(eagle1)

	var ostrich1 *Bird = new(Bird)
	(*ostrich1).Name = "ostrich"
	(*ostrich1).Wing = true
	(*ostrich1).Fly = false
	(*ostrich1).Color = "white"
	fmt.Println(*ostrich1)
	ostrich1.Color = "While&Yellow"
	fmt.Println(*ostrich1)
	canary := &Bird{
		Name:  "canary",
		Wing:  true,
		Fly:   true,
		Color: "golden",
	}
	fmt.Println(*canary)
}
